<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>

<%@page import="modelo.Funcionario"%>

<html>
  
  <head>
    
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
    <title>
      Waiters
    </title>
   
   <link rel="shortcut icon" href="images/icons/icone.png" />
       <link rel="stylesheet" type="text/css" href="css/minified/aui-production.min.css">
    <link id="layout-theme" rel="stylesheet" type="text/css" href="themes/minified/fides/color-schemes/dark-blue.min.css">
    <link rel="stylesheet" type="text/css" href="themes/minified/fides/common.min.css">
    <link rel="stylesheet" type="text/css" href="themes/minified/fides/responsive.min.css">
   
   

    <script type="text/javascript" src="js/minified/aui-production.min.js">
    </script>
     
     <!--[if lt IE 9]>
      <script src="assets/js/minified/core/html5shiv.min.js">
      </script>
      <script src="assets/js/minified/core/respond.min.js">
      </script>
    <![endif]-->
    <!-- Fides Admin CSS Core -->

  </head>
  
  <body>
    
    <!-- ************************ Barra Preta Menu ************************ -->  
    
    
    <div id="page-wrapper" class="demo-example">
    
        <div id="page-header" class="clearfix"> 
        
        <!-- ************************ Canto esquerdo. Logo ************************ -->  
            <div id="header-logo">
            
            <!-- ************************ Botao de recuar Menu  ************************ -->  
            
                <a href="javascript:;" class="tooltip-button" data-placement="bottom" title="" id="close-sidebar" data-original-title="Fechar Menu">
                <i class="glyph-icon icon-caret-left"></i> </a> <!-- Icone do botao Menu para Esquerda -->
                 
                <a href="javascript:;" class="tooltip-button hidden" data-placement="bottom" title="" id="rm-close-sidebar" data-original-title="Abrir Menu">
                <i class="glyph-icon icon-caret-right"></i> </a> <!-- Icone do botao Menu para Esquerda -->

                <img src="images/logo/logo1.png" width="153" height="46">  <!-- Logo -->
                
            </div>
    
    <!-- ************************ Menu do Lado Direito ************************ -->
        
        <div class="user-profile dropdown"> <!-- Usuario Logado -->
          
            <a href="javascript:;" title="" class="user-ico clearfix" data-toggle="dropdown"><i class="glyph-icon icon-gears"> </i> 
            	<span>Arthur</span> <i class="glyph-icon icon-chevron-down"></i> </a>
            
                <ul class="dropdown-menu float-right">
                    <li>
                        <a href="Empresa.jsp" title="Eitar o seu Perfil"> <i class="glyph-icon icon-user mrg5R"></i> Empresa </a>
                    </li>
                    
                    <li>
                        <a href="Funcionario-consultar.jsp" title="Editar o Perfil dos Funcionarios"> <i class="glyph-icon icon-cog mrg5R"></i> Funcionários </a>
                    </li>
                    
                    <li>
                        <a href="javascript:;" title="Sair do Sistema"> <i class="glyph-icon icon-signout font-size-13 mrg5R"></i>
                        	<span class="font-bold">Sair</span>  </a>
                   </li>
                </ul>
        </div>
    </div>
       
      
      <!-- ************************ Barra Lado Esquedo - MENU  ************************ -->
      
    <div id="page-sidebar" class="scrollable-content" tabindex="5003" style="overflow: hidden; outline: none; height: 1315px;">
    
        <div id="sidebar-menu" class="active">
        
            
            <ul>
                <li class="current-page"> <a href="Principal.jsp" title="Home"> <i class="glyph-icon icon-home"></i> Home </a> </li>
                
                <li> <a href="Pedidos.jsp" title="Pedidos"> <i class="glyph-icon icon-reorder"></i> Pedidos </a>
                    <ul>
                        <li><a href="#" title="Pedidos atuais"><i class="glyph-icon icon-chevron-right"></i>Atual </a></li>
                        <li><a href="#" title="Pedidos anteriores"><i class="glyph-icon icon-chevron-right"></i> Anteriores </a></li>
                    </ul>
                </li>
                
                <li><a href="javascript:;" title="Relatórios"><i class="glyph-icon icon-bar-chart"></i>Relatórios</a>
                    <ul>
                        <li><a href="Relatorio-fluxo-de-caixa.jsp" title="Relatórios de fluxo de caixa">
                        	<i class="glyph-icon icon-chevron-right"></i>Fluxo de Caixa</a></li>
                            
                        <li><a href="Relatorio-Estatistica-de-pedidos.jsp" title="Estatística de produtos consumidos">
                        	<i class="glyph-icon icon-chevron-right"></i>Estatística de Produtos</a></li>
                            
                        <li><a href="Relatorio-Estatistica-de-consumo.jsp" title="Estatística do periodo de consumo">
                        	<i class="glyph-icon icon-chevron-right"></i>Estatística de Consumo</a></li>
                    </ul>
                </li>
                
                <li><a href="javascript:;" title="Relatórios"><i class="glyph-icon icon-book"></i>Cardápio</a>
                    <ul>
                        <li><a href="Cardapio.jsp" title="Relatórios de fluxo de caixa">
                        	<i class="glyph-icon icon-chevron-right"></i>Produto</a></li>
                            
                        <li><a href="Item.jsp" title="Estatística de produtos consumidos">
                        	<i class="glyph-icon icon-chevron-right"></i>Ingredientes</a></li>
                    </ul>
                </li>
            </ul>
        </div>
	</div>
  </div>
        
  
    <!-- # Fim Menu -->
	<div id="page-content-wrapper" style="margin-left: 220px;">
		<!-- Titulo -->
		<div id="page-title">
			<h3>
				Funcionários
				<small>Editar dados dos funcionários</small>
			</h3>
		</div>
		<!-- Fim do Titulo -->

		<div id="page-content">
			
		<jsp:useBean id="funcionarioSelecionado" class="modelo.Funcionario" scope="session" />
			
		<form action="ManterFuncionario" method="post">
		<input type="hidden" name="operacao" value="editarFuncionario">

		<!-- ************************ Cargo ************************ --> 
		<div class="form-row">
			<div class="form-label col-md-2 mrg10L">
				<label for="">
				Cargo
            	</label>
            </div>
            <div class="form-input col-md-3">
            	<select name="cargo">
            	  <option value="<jsp:getProperty name="funcionarioSelecionado" property="codCargo" />" selected><jsp:getProperty name="funcionarioSelecionado" property="nmCargo" /></option>
                  <option value="0">Selecione</option>
                  <option value="1">Gerente</option>
                  <option value="2">Atendente</option>
                </select>
       		</div>
        </div>
		
         <!-- ************************Nome************************ --> 
		
		<div class="form-row">
			<div class="form-label col-md-2 mrg10L">
				<label for="">
					<font>Nome:</font>
				</label>
			</div>
			<div class="form-input col-md-7">
		  		<input placeholder="Digite o nome da Empresa" type="text" readonly="true" name="nome" value="<jsp:getProperty name="funcionarioSelecionado" property="nmNomeFuncionario" />">
			</div>
		</div>
        
        <!-- ************************ CPF ************************ -->   
         
            <div class="form-row">
              <div class="form-label col-md-2 mrg10L">
                <label for="">
                  <font>
                      CPF
                    </font>
                </label>
              </div>
              <div class="form-input col-md-3">
                <input placeholder="999.999.999-99" type="text" readonly="true" name="cpf" value="<jsp:getProperty name="funcionarioSelecionado" property="nmCPF" />">
              </div>
             </div>
         
        <!-- ************************ CTPS ************************ -->
        
          <div class="form-row">
              <div class="form-label col-md-2 mrg10L">
                <label for="">
                  <font>
                     CTPS:
                  </font>
                </label>
              </div>
              <div class="form-input col-md-3">
                <input placeholder="digite aqui" type="text" readonly="true" name="ctps" value="<jsp:getProperty name="funcionarioSelecionado" property="nmCTPS" />">
              </div>
          </div>
        
        <!-- ************************   Data de Nascimento: ************************ mrg10L-->    
          <div class="form-row">  
              <div class="form-label col-md-2 mrg10L">
                <label for="">
                  <font>
                    Data de Nascimento:
                  </font>
                </label>
              </div>
              <div class="form-input col-md-1">
                <input placeholder="99/99/9999" type="text" readonly="true" name="datanascimento" value="<jsp:getProperty name="funcionarioSelecionado" property="nmDataNascimento" />">
              </div>
             </div>
		
        <!-- ************************ Endereço ************************ -->
        
          <div class="form-row">
              <div class="form-label col-md-2 mrg10L">
                <label for="">
                    <font>
                     Endereço
                  </font>
                </label>
              </div>
              <div class="form-input col-md-7">
                <input placeholder="digite aqui" type="text" name="endereco" value="<jsp:getProperty name="funcionarioSelecionado" property="nmEndereco" />">
              </div>
          </div>    
 
        <!-- ************************  Numero - Endereço ************************ -->    
          <div class="form-row">
              <div class="form-label col-md-2 mrg10L">
                <label for="">
                  <font>
                    Numero:
                  </font>
                </label>
              </div>
              <div class="form-input col-md-1">
                <input placeholder="digite aqui" type="text" name="endereco-numero" value="<jsp:getProperty name="funcionarioSelecionado" property="nmNumero" />">
              </div>
          
        
         <!-- ************************  Complemento ************************ -->    
          <div class="form-input col-md-1"></div>
              <div class="form-label col-md-1">
                <label for="">
                  <font>
                    Complemento:
                  </font>
                </label>
              </div>
              <div class="form-input col-md-1">
                <input placeholder="digite aqui" type="text" name="complemento" value="<jsp:getProperty name="funcionarioSelecionado" property="nmNumero" />">
              </div>
          </div>
                      
		<!-- ************************ Senha ************************ -->    
         
		<div class="form-row">
			<div class="form-label col-md-2 mrg10L">
				<label for="">
					<font>Senha</font>
				</label>
			</div>
			<div class="form-input col-md-4">
				<input placeholder="Minimo de 6 caracteres" type="password" name="senha" value="<jsp:getProperty name="funcionarioSelecionado" property="nmSenha" />">
			</div>
		</div>

		
		<input style=visibility:hidden name="codFuncionario" value="<jsp:getProperty name="funcionarioSelecionado" property="codFuncionario" name="codFuncionario"/>">
		<!-- ************************ Salvar ************************ -->    
		<div class="pad15T">
			<div class="col-md-2">
				<button class="button-content font-size-11 text-transform-upr btn bg-green" type="submit">Salvar</button>
			</div>
		</div>
		</form>
	</div>
		
		<!-- #page-content -->
	</div>
	<!-- #page-main -->
	<!-- #page-wrapper -->
</body>
</html>